import { Tooltip } from 'antd';
import { Chart,Interval,Iooltip} from 'bizcharts';
import { useMemo } from "react"
export default function BarChart2(){
  const data=useMemo(()=>{
    const result=[
      {year:'1年',sales:0},
      {year:'2年',sales:34},
      {year:'3年',sales:55},
      {year:'4年',sales:43},
      {year:'5年',sales:56},
      {year:'6年',sales:34},
      {year:'7年',sales:34},
      {year:'8年',sales:23}
    ]
    return result
  },[])

  return<Chart height={300} autoFit data={data}>
    <Interval position="year*sales" />
    <Tooltip shared />
  </Chart>
}